package cn.hnu.qq.entity.message;

import java.io.Serializable;

import cn.hnu.qq.global.MessageType;

public class OnlineMessage extends Message implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public OnlineMessage(){
		setMessageType(MessageType.ONLINE);
	}
	
	
	
	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getIpAddr() {
		return ipAddr;
	}

	public void setIpAddr(String ipAddr) {
		this.ipAddr = ipAddr;
	}

	public Integer getPort() {
		return port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}



	@Override
	public String toString() {
		return "OnlineMessage [account=" + account + ", ipAddr=" + ipAddr
				+ ", port=" + port + "]";
	}



	private String account;
	
	private String ipAddr;
	
	private Integer port;
}
